package bysj.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@AllArgsConstructor//全参构造器
public class ApplicationForSupervisorEntry
        implements Comparable<ApplicationForSupervisorEntry>, Serializable {
    //目标导师
    private Teacher teacher;
    private int teacher_id;
    //志愿顺序
    private int priority;
    private ApplicationForSupervisor applicationForSupervisor;


    @Override
    public int compareTo(ApplicationForSupervisorEntry applicationForSupervisorEntry){
        return this.priority-applicationForSupervisorEntry.priority;
    }
    public String toString()
    {
        final String TAB = "    ";

        String retValue = "";

        retValue = "ApplicationForSupervisorEntry ( "
                + super.toString() + TAB
                + "teacher= " + this.teacher + TAB
                + "priority = " + this.priority + TAB
                + "sup= " + this.applicationForSupervisor + TAB
                + " )";

        return retValue;
    }
}
